memorytexture: Split out GdkMemoryFormat handling
authorBenjamin Otte <otte@redhat.com>
Wed, 22 Sep 2021 00:01:41 +0000 (02:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 6 Oct 2021 20:50:07 +0000 (22:50 +0200)
commit48781cf7f7b67fe2f769423150b8fecce67a3549
tree79a29f868aa9b311e84c418c417814cc5c069784
parent4360bc326ad9e19120a7bebfd7f5174c4e022f34
memorytexture: Split out GdkMemoryFormat handling

Also, now make gdk_memory_convert() the only conversion functions
and allow conversions between any 2 formats by going via a float[4].

This could be optimized via fast-paths, but so far it isn't.
12 files changed:
gdk/gdkglcontext.c
gdk/gdkgltexture.c
gdk/gdkmemoryformat.c [new file with mode: 0644]
gdk/gdkmemoryformatprivate.h [new file with mode: 0644]
gdk/gdkmemorytexture.c
gdk/gdkmemorytextureprivate.h
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c
gdk/meson.build
gsk/ngl/gsknglcommandqueue.c
gsk/ngl/gsknglglyphlibrary.c
gsk/ngl/gskngliconlibrary.c